<h4>
	<ul class="nav nav-tabs nav-menu">
	  <li role="presentation"><a href="/admin/device/product">产品管理</a></li>
	  <li role="presentation"><a href="/admin/device/device">设备管理</a></li>
	</ul>
</h4>
<script type="text/javascript">
var modurl = window.location.href;
$('.nav-menu').children("li").children("a").filter(function() {
  return modurl.indexOf($(this).attr("href"))>0;
}).parent("li").addClass("active");
</script>